<html><head><title>InsertJSONStructure</title></head>
<body bgcolor="#FFFFDF" link="#009999" vlink="#006666" alink="#006666">
<font face="Arial" size="2"><p align="center"><b><font size="4">InsertJSONStructure()</font></b></p>
<p><b>Syntax</b></p><blockquote>
<font color="#006666"><b>InsertJSONStructure</b></font>(JSONValue, *Buffer, Structure)</blockquote>

</blockquote>
<b>Description</b><br><blockquote>

Insert the contents of the specified structure memory into the given JSON value. 
The JSON value will be changed to <a href="jsontype.html">type</a> <font color="#924B72">#PB_JSON_Object</font> 
and contain one member for each member in the structure. 

</blockquote><p><b>Parameters</b></p><blockquote>
<style type="text/css">
table.parameters { border-spacing: 0px; border-style: none; border-collapse: collapse; }
table.parameters td { border-width: 1px; padding: 6px; border-style: solid; border-color: gray; vertical-align: top; font-family:Arial; font-size:10pt; }
</style>
<table width="90%" class="parameters">
<tr><td width="10%"><i>JSONValue</i></td>
<td width="90%"> 
The JSON value. The previous content of the value will be changed to the 
contant of the structure. 

</td></tr>
<tr><td><i>*Buffer</i></td>
<td> 
The address of the structure to insert into the JSON value. 

</td></tr>
<tr><td><i>Structure</i></td>
<td> 
The type of the structure to insert. 

</td></tr>
</table>
</blockquote><p><b>Return value</b></p><blockquote>
None.


</blockquote><p><b>Example</b></p><blockquote>

<pre><font face="Courier New, Courier, mono"size="2">  <b><font color="#006666">Structure</font></b> Person
    FirstName$
    LastName$
    Age.l
    <b><font color="#006666">List</font></b> <font color="#006666">Books</font>.s()
  <b><font color="#006666">EndStructure</font></b>
  
  <b><font color="#006666">Define</font></b> P.Person
  P\FirstName$ = "John"
  P\LastName$  = "Smith"
  P\Age        = 42
<font color="#006666">  AddElement</font>(P\<font color="#006666">Books</font>()): P\<font color="#006666">Books</font>() = "Investing For Dummies"
<font color="#006666">  AddElement</font>(P\<font color="#006666">Books</font>()): P\<font color="#006666">Books</font>() = "English Grammar For Dummies"
<font color="#006666">  AddElement</font>(P\<font color="#006666">Books</font>()): P\<font color="#006666">Books</font>() = "A Little Bit of Everything For Dummies"
  
  <b><font color="#006666">If</font></b> <font color="#006666">CreateJSON</font>(0)
<font color="#006666">    InsertJSONStructure</font>(<font color="#006666">JSONValue</font>(0), @P, Person)
    <b><font color="#006666">Debug</font></b> <font color="#006666">ComposeJSON</font>(0, <font color="#924B72">#PB_JSON_PrettyPrint</font>)
  <b><font color="#006666">EndIf</font></b>
</font></pre>

</blockquote><p><b>See Also</b></p><blockquote>

<a href="insertjsonarray.html">InsertJSONArray()</a>, <a href="insertjsonlist.html">InsertJSONList()</a>, <a href="insertjsonmap.html">InsertJSONMap()</a>, 
<a href="extractjsonarray.html">ExtractJSONArray()</a>, <a href="extractjsonlist.html">ExtractJSONList()</a>, <a href="extractjsonmap.html">ExtractJSONMap()</a>, <a href="extractjsonstructure.html">ExtractJSONStructure()</a>, 

</Blockquote><p><b>Supported OS </b><Blockquote>All</Blockquote></p><center><- <a href=insertjsonmap.html>InsertJSONMap()</a> - <a href=index.html>Json Index</a> - <a href=isjson.html>IsJSON()</a> ->

</body></html>